const webpack = require('./lib/myWebpack/webpack')
const options = require('./webpack.config')

// 生成compiler编译工厂
const compiler = webpack(options)

// 执行打包程序
compiler.run((err, stats) => {
  console.log(err)
  console.log(stats)
})